<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let arr = [11,13,11,14,13,15,15,16,12,13];
        function unqie(arr){
            let newArr = [];
            for(let i=0;i<arr.length;i++){
                // if(newArr.indexOf(arr[i])===-1){
                //     newArr.push(arr[i]);
                // }
                if(!newArr.includes(arr[i])){ 
                    newArr.push(arr[i])
                }
            }
            return newArr
        }
        let arr1 = unqie(arr)
        console.log(arr1);

        // console.log(Array.prototype) 查看Array所有的内置方法
    </script>
</body>
</html>